import {Component, OnInit, ViewEncapsulation} from '@angular/core';
import {Router} from '@angular/router';
import {Config} from "../../configs/config";

@Component({
  selector : 'app-header',
  encapsulation : ViewEncapsulation.None,
  styleUrls : [
    './appheader.component.css',
    '../../../../node_modules/bootstrap/dist/css/bootstrap.min.css',
    '../../../../node_modules/bootstrap/dist/css/bootstrap-grid.min.css'
  ],
  templateUrl : './appheader.component.html'
})
export class AppHeaderComponent implements OnInit {
  private router: Router;
  constructor(private _router: Router) { this.router = _router; }

  public ngOnInit(): void { console.log(this.router.url); }

  getAdminUrl(): string {
    return Config.ADMIN_BASE_URL;
  }
}
